package com.zpphis.controller;

import com.zpphis.service.ISelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/select")
public class SelectController {

    @Autowired
    private ISelectService selectService;

    @RequestMapping("/constItem.json")
    public List<Map<String, Object>> constItem(int constantTypeId) {
        return selectService.constItem(constantTypeId);
    }

    @RequestMapping("/deptName.json")
    public List<Map<String, Object>> deptName() {
        return selectService.deptName();
    }

    @RequestMapping("/menuTitle.json")
    public List<Map<String, Object>> menuTitle() {
        return selectService.menuTitle();
    }

    @RequestMapping("/registLe.json")
    public List<Map<String, Object>> registLe() {
        return selectService.registLe();
    }

    @RequestMapping("/userType.json")
    public List<Map<String, Object>> userType() {
        return selectService.userType();
    }
}
